package com.project.nimsen.weixin.bean;

import org.apache.commons.lang3.StringUtils;
import org.dom4j.Element;

/**
 * 接收事件类
 * */
public class EventRMsg extends BaseMsg {
	private String event;//事件类型

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	protected String info() {
		StringBuffer info = new StringBuffer();
		info.append("<Event><![CDATA[").append(this.getEvent()).append("]]></Event>");
		return info.toString();
	}

	protected void fullchildProperty(Element root) {
		String even = root.elementText("Event");
		if(StringUtils.isNotBlank(even))
			this.setEvent(even);
	}
}
